<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>sock: sock::http::HttpBuffer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">sock
   &#160;<span id="projectnumber">v0.11</span>
   </div>
   <div id="projectbrief">C++ Network Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesock.html">sock</a></li><li class="navelem"><a class="el" href="namespacesock_1_1http.html">http</a></li><li class="navelem"><a class="el" href="classsock_1_1http_1_1_http_buffer.html">HttpBuffer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classsock_1_1http_1_1_http_buffer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">sock::http::HttpBuffer Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>缓存类，在响应中存数数据  
 <a href="classsock_1_1http_1_1_http_buffer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="http__buffer_8h_source.html">http_buffer.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for sock::http::HttpBuffer:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsock_1_1http_1_1_http_buffer.png" usemap="#sock::http::HttpBuffer_map" alt=""/>
  <map id="sock::http::HttpBuffer_map" name="sock::http::HttpBuffer_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a1ecfa607483d6818c6eaddc982dc7949"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classsock_1_1http_1_1_http_buffer.html">HttpBuffer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a></td></tr>
<tr class="separator:a1ecfa607483d6818c6eaddc982dc7949"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5851239b1bc568dcbbdf5999b666c8cc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a5851239b1bc568dcbbdf5999b666c8cc">HttpBuffer</a> (size_t <a class="el" href="classsock_1_1http_1_1_http_buffer.html#aa0094576c0b88d1522df80245fc0760b">size</a>=0x1000)</td></tr>
<tr class="separator:a5851239b1bc568dcbbdf5999b666c8cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36e0255ffdffb0a6b8c81d209dd66329"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a36e0255ffdffb0a6b8c81d209dd66329">~HttpBuffer</a> (void)</td></tr>
<tr class="separator:a36e0255ffdffb0a6b8c81d209dd66329"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0094576c0b88d1522df80245fc0760b"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#aa0094576c0b88d1522df80245fc0760b">size</a> (void)</td></tr>
<tr class="memdesc:aa0094576c0b88d1522df80245fc0760b"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取缓存数据长度  <a href="#aa0094576c0b88d1522df80245fc0760b">More...</a><br /></td></tr>
<tr class="separator:aa0094576c0b88d1522df80245fc0760b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfedfe4b71fd48594403996beba5f4aa"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:acfedfe4b71fd48594403996beba5f4aa"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#acfedfe4b71fd48594403996beba5f4aa">appendBasic</a> (T &amp;x)</td></tr>
<tr class="memdesc:acfedfe4b71fd48594403996beba5f4aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">在流末尾写入基础类型  <a href="#acfedfe4b71fd48594403996beba5f4aa">More...</a><br /></td></tr>
<tr class="separator:acfedfe4b71fd48594403996beba5f4aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bb09bbc56179c40df4e715ffad4bba4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1bb09bbc56179c40df4e715ffad4bba4">appendCharArray</a> (const char *x, size_t length)</td></tr>
<tr class="memdesc:a1bb09bbc56179c40df4e715ffad4bba4"><td class="mdescLeft">&#160;</td><td class="mdescRight">在缓存末尾写入字符串数组  <a href="#a1bb09bbc56179c40df4e715ffad4bba4">More...</a><br /></td></tr>
<tr class="separator:a1bb09bbc56179c40df4e715ffad4bba4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f65ad62003a33cdebca55bf869ab376"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a4f65ad62003a33cdebca55bf869ab376">operator&lt;&lt;</a> (char x)</td></tr>
<tr class="separator:a4f65ad62003a33cdebca55bf869ab376"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab39f09f59dd694c07b1ca2632bb964ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#ab39f09f59dd694c07b1ca2632bb964ca">operator&lt;&lt;</a> (short x)</td></tr>
<tr class="separator:ab39f09f59dd694c07b1ca2632bb964ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d4be9999aa68e0745857a84b3a5fbdf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a6d4be9999aa68e0745857a84b3a5fbdf">operator&lt;&lt;</a> (int x)</td></tr>
<tr class="separator:a6d4be9999aa68e0745857a84b3a5fbdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c878342e8581e6d186410a17850905c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a4c878342e8581e6d186410a17850905c">operator&lt;&lt;</a> (long x)</td></tr>
<tr class="separator:a4c878342e8581e6d186410a17850905c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78e474f934a3f92497200c4792cfdb0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a78e474f934a3f92497200c4792cfdb0e">operator&lt;&lt;</a> (long long x)</td></tr>
<tr class="separator:a78e474f934a3f92497200c4792cfdb0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99bb19e3814d43d1eba77e4d33ca2c0d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a99bb19e3814d43d1eba77e4d33ca2c0d">operator&lt;&lt;</a> (float x)</td></tr>
<tr class="separator:a99bb19e3814d43d1eba77e4d33ca2c0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a626527f1f248b4fd42a10ee59e9c0d97"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a626527f1f248b4fd42a10ee59e9c0d97">operator&lt;&lt;</a> (double x)</td></tr>
<tr class="separator:a626527f1f248b4fd42a10ee59e9c0d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9ff0e2fd6baac5027493983747a00fb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#aa9ff0e2fd6baac5027493983747a00fb">operator&lt;&lt;</a> (std::string &amp;x)</td></tr>
<tr class="separator:aa9ff0e2fd6baac5027493983747a00fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae515aacd8b03322c2d98502cb5529f62"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#ae515aacd8b03322c2d98502cb5529f62">operator&lt;&lt;</a> (std::string x)</td></tr>
<tr class="separator:ae515aacd8b03322c2d98502cb5529f62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f94d20b364e528a213a16b520c52079"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1f94d20b364e528a213a16b520c52079">operator&lt;&lt;</a> (const char *x)</td></tr>
<tr class="separator:a1f94d20b364e528a213a16b520c52079"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2fe669f7d4e9230a0efad6e928913d3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#ac2fe669f7d4e9230a0efad6e928913d3">write</a> (const char *x, size_t length)</td></tr>
<tr class="memdesc:ac2fe669f7d4e9230a0efad6e928913d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">向缓存写入数据  <a href="#ac2fe669f7d4e9230a0efad6e928913d3">More...</a><br /></td></tr>
<tr class="separator:ac2fe669f7d4e9230a0efad6e928913d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93779735c436176f24acd931e0b47e7c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a93779735c436176f24acd931e0b47e7c">write</a> (const char *x)</td></tr>
<tr class="memdesc:a93779735c436176f24acd931e0b47e7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">向缓存写入C字符串  <a href="#a93779735c436176f24acd931e0b47e7c">More...</a><br /></td></tr>
<tr class="separator:a93779735c436176f24acd931e0b47e7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a3e611175a551b64dda26f513067e0d04"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a3e611175a551b64dda26f513067e0d04">HttpSession</a></td></tr>
<tr class="separator:a3e611175a551b64dda26f513067e0d04"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>缓存类，在响应中存数数据 </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a1ecfa607483d6818c6eaddc982dc7949"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classsock_1_1http_1_1_http_buffer.html">HttpBuffer</a> <a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">sock::http::HttpBuffer::self</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5851239b1bc568dcbbdf5999b666c8cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HttpBuffer::HttpBuffer </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em> = <code>0x1000</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a36e0255ffdffb0a6b8c81d209dd66329"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HttpBuffer::~HttpBuffer </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="acfedfe4b71fd48594403996beba5f4aa"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sock::http::HttpBuffer::appendBasic </td>
          <td>(</td>
          <td class="paramtype">T &amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在流末尾写入基础类型 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1bb09bbc56179c40df4e715ffad4bba4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sock::http::HttpBuffer::appendCharArray </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在缓存末尾写入字符串数组 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td></td></tr>
    <tr><td class="paramname">length</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4f65ad62003a33cdebca55bf869ab376"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab39f09f59dd694c07b1ca2632bb964ca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">short&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a6d4be9999aa68e0745857a84b3a5fbdf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4c878342e8581e6d186410a17850905c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a78e474f934a3f92497200c4792cfdb0e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">long long&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a99bb19e3814d43d1eba77e4d33ca2c0d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a626527f1f248b4fd42a10ee59e9c0d97"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa9ff0e2fd6baac5027493983747a00fb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae515aacd8b03322c2d98502cb5529f62"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1f94d20b364e528a213a16b520c52079"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1http_1_1_http_buffer.html#a1ecfa607483d6818c6eaddc982dc7949">self</a>&amp; sock::http::HttpBuffer::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa0094576c0b88d1522df80245fc0760b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t sock::http::HttpBuffer::size </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取缓存数据长度 </p>
<dl class="section return"><dt>Returns</dt><dd>size_t </dd></dl>

</div>
</div>
<a class="anchor" id="ac2fe669f7d4e9230a0efad6e928913d3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sock::http::HttpBuffer::write </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>向缓存写入数据 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>数据指针 </td></tr>
    <tr><td class="paramname">length</td><td>数据长度 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a93779735c436176f24acd931e0b47e7c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sock::http::HttpBuffer::write </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>向缓存写入C字符串 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="a3e611175a551b64dda26f513067e0d04"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classsock_1_1http_1_1_http_session.html">HttpSession</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>E:/git/sock/sock/http/<a class="el" href="http__buffer_8h_source.html">http_buffer.h</a></li>
<li>E:/git/sock/src/http/<a class="el" href="http__buffer_8cc.html">http_buffer.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
